public class variableScopeExample{
  public static void main(String args[]){
    int first=1;
    System.out.println("first="+first);
    int second=2;
    System.out.println("first="+first);
    System.out.println("second="+second);
    int third=3;
    System.out.println("first="+first);
    System.out.println("second="+second);
    System.out.println("third="+third);
  }
}